﻿#ifndef CONFIG_H
#define CONFIG_H

//游戏名称
#define GAME_TITLE "扫雷"
//状态栏高度
#define STATUSBAR_HEIGHT 40
//地雷数量
extern int MINE_NUM ;
//刷新间隔
#define GAME_RATE 10

//资源路径
#define GAME_RES_PATH "./MinesWeeper.rcc"
#define GRID_WIDTH 30 //格子大小
//调试格子
extern int GRID_NUM_HOR;
extern int GRID_NUM_VER;

extern int configMinNUM;
extern int configGridNumHor;
extern int configGridNumVer;

#define GAME_ICON ":/pic/mine.ico"  //图标资源
#define HAPPY ":/pic/happy.png"     //开心
#define UNHAPPY ":/pic/unhappy.png" //不开心
#define VICTORY ":/pic/victory.png" //胜利

#define NOTSWEEP ":/pic/notSweep.jpg"   //未排雷
#define FLAG ":/pic/flag.jpg"           //旗帜
#define MINE_STEP ":/pic/mine_step.jpg" //踩雷
#define MINE ":/pic/mine.jpg"           //雷

#define MINE_0 ":/pic/mine0.jpg"
#define MINE_1 ":/pic/mine1.jpg"
#define MINE_2 ":/pic/mine2.jpg"
#define MINE_3 ":/pic/mine3.jpg"
#define MINE_4 ":/pic/mine4.jpg"
#define MINE_5 ":/pic/mine5.jpg"
#define MINE_6 ":/pic/mine6.jpg"
#define MINE_7 ":/pic/mine7.jpg"
#define MINE_8 ":/pic/mine8.jpg"
#define MINE_9 ":/pic/mine9.jpg"

#define NUM_0 ":/pic/num0.png"
#define NUM_1 ":/pic/num1.png"
#define NUM_2 ":/pic/num2.png"
#define NUM_3 ":/pic/num3.png"
#define NUM_4 ":/pic/num4.png"
#define NUM_5 ":/pic/num5.png"
#define NUM_6 ":/pic/num6.png"
#define NUM_7 ":/pic/num7.png"
#define NUM_8 ":/pic/num8.png"
#define NUM_9 ":/pic/num9.png"

//游戏难度选择
//简单
#define easyMine 10
#define easyWidth 9
#define easyHeight 9
//中等
#define middleMine 40
#define middleWidth 16
#define middleHeight 16
//困难
#define hardMine 99
#define hardWidth 30
#define hardHeight 16

#endif // CONFIG_H
